<?php if (!defined('THINK_PATH')) exit();?><!--<meta http-equiv="refresh" content="1"/>-->
<link href="/Public/Home/css/sane.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="/Public/js/layer/layer.js" type="text/javascript"></script>
<link href="/Public/css/bootstrap.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/bootstrap.js" type="text/javascript"></script>
<script src="/Public/Home/js/readCourse.js" type="text/javascript"></script>
<script src="/Public/js/jquery.js" type="text/javascript"></script>
<div class="c-main-left-content">
    <div class="con_title">
        <h3>阅读历程</h3>
    </div>

    <div class="box_box">
        <!--选项--->
        <div id="header-2">
            <ul class="ttt">
                <li class="about">借阅历程</li>
                <li class="jiaru">购买历程</li>
                <div class="clear"></div>
            </ul>
        </div>
        <div class="container-1 " id="contation">
            <div class="tabCont">
                <!--借阅历程-->
                <div class="tabpart1" id="con_margin">
                    <div class="con_left">
                        <div class="z_left"></div>
                    </div>
                    <div class="con_right">
                        <div class="zz_right"></div>
                    </div>
                    <div class="con_center">
                        <span>阅读时间轴</span>
                    </div>
                    <div class="course_box">
                        <?php if(is_array($_getBorrowInfoById)): $i = 0; $__LIST__ = $_getBorrowInfoById;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="message_box" id="height_height">
                                <div class="mess_box_box">
                                    <span>借阅时间：</span>
                                    <span><?php echo (date('Y-m-d H:i:s',$vo['borrow_time'])); ?></span>
                                    <span>-</span>
                                    <span><?php echo (date('Y-m-d H:i:s',$vo['borrow_backtime'])); ?></span>
                                    <div class="ifback_status">
                                        <span>状态：</span>
                                        <?php if($vo['borrow_ifback'] == 1): ?><span style="color: #255625">已归还</span><?php endif; ?>
                                        <?php if($vo['borrow_ifback'] == 2): ?><span  style="color: red">未归还</span><?php endif; ?>
                                        <?php if($vo['borrow_ifback'] == 3): ?><span style="color: #009f95">归还申请</span><?php endif; ?>
                                    </div>
                                </div>
                                <div class="mess_info">
                                    <span>您</span>
                                    <?php if(is_array($_bookShowInfo)): $i = 0; $__LIST__ = $_bookShowInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$zo): $mod = ($i % 2 );++$i; if($vo['book_id'] == $zo['book_id']): ?><span>在<?php echo ($_libraryInfo['library_top_title']); ?>借阅一本《<?php echo ($zo['book_name']); ?>》</span>
                                            <span>条形码：</span>
                                            <span><?php echo ($zo['book_barcode']); ?></span><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                </div>
                            </div><?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                </div>
                <!--购买历程-->
                <div class="tabpart1" id="con1_margin" >
                    <div class="con_left">
                        <div class="z_left"></div>
                    </div>
                    <div class="con_right">
                        <div class="zz_right"></div>
                    </div>
                    <div class="con_center">
                        <span>购买时间轴</span>
                    </div>
                    <div class="course_box">
                        <?php if(is_array($_getBookBuyInfo)): $i = 0; $__LIST__ = $_getBookBuyInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fo): $mod = ($i % 2 );++$i;?><div class="message_box" id="height_height1">
                                <div class="mess_box_box">
                                    <span>购买时间：</span>
                                    <span><?php echo (date('Y-m-d H:i:s',$fo['buybook_time'])); ?></span>
                                    <div class="ifback_status">
                                        <span>状态：</span>
                                        <?php if($fo['book_status'] == 1): ?><span style="color: #0070cc">订单提交</span><?php endif; ?>
                                        <?php if($fo['book_status'] == 2): ?><span  style="color: #255625">订单确认</span><?php endif; ?>
                                        <?php if($fo['book_status'] == 3): ?><span style="color: #ac2925">订单完成</span><?php endif; ?>
                                    </div>
                                </div>
                                <div class="mess_info">
                                    <span>您</span>
                                    <span>在<?php echo ($_libraryInfo['library_top_title']); ?>购买一本价格：&nbsp;&nbsp;￥<?php echo ($fo['book_price']); ?>&nbsp;&nbsp;的《<?php echo ($fo['book_name']); ?>》</span>
                                    <span>支付方式：</span>
                                    <span>
                                        <?php if($fo['buy_type'] == 1): ?><span style="color: #0062b3">货到付款</span>
                                            <?php else: ?>
                                            <span style="color: #0062b3">银联支付</span><?php endif; ?>
                                    </span>
                                </div>
                            </div><?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>